package cn.com.pet.common.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.pet.common.dao.AdminUserMapper;
import cn.com.pet.common.entity.AdminUser;
import cn.com.pet.common.service.AdminUserService;

@Service("adminUserService")
public class AdminUserServiceImpl implements AdminUserService {

	@Autowired
	AdminUserMapper adminUserMapper;

	@Override
	public AdminUser adminUserLogin(AdminUser adminUser) {
		return adminUserMapper.adminUserLogin(adminUser);
	}

	@Override
	public int addAdminUser(AdminUser adminUser) {
		return adminUserMapper.addAdminUser(adminUser);
	}

	@Override
	public int updateAdminUser(AdminUser adminUser) {
		return adminUserMapper.updateAdminUser(adminUser);
	}

	@Override
	public AdminUser getAdminUserById(AdminUser adminUser) {
		return adminUserMapper.getAdminUserById(adminUser);
	}

	@Override
	public List<AdminUser> getAdminUserList(AdminUser adminUser) {
		return adminUserMapper.getAdminUserList(adminUser);
	}

}
